/*
 * @Author: 脉迈
 * @Date: 2021-10-15 15:45:24
 * @LastEditors: 脉迈
 * @LastEditTime: 2021-10-18 16:59:33
 */
import { atom } from "recoil";

export type pageComponentListItemType = {
  style: {
    position: string;
    height: number;
  };
  children?: any;
};

/**
 * @description 当前页面模板拼装组件列表
 */
export const pageComponentsState = atom<pageComponentListItemType[]>({
  key: "pageComponentsState",
  default: [],
});

/**
 * @description 当前访问编辑的【模块】索引
 */
export const blockActiveIndexState = atom({
  key: "blockActiveIndex",
  default: 0,
});

/**
 * @description 当前访问编辑的【组件】索引
 */
export const componentActiveIndexState = atom({
  key: "componentActiveIndex",
  default: 0,
});
